<include file="Common/works/header" />
<include file="Common/works/left_menu" />

<if condition="!empty($info) eq true">
<div class="right" id="tab1">
  <div class="title"><a href="/worksorder/orderlist.html">我的订单</a>&nbsp;&gt;&nbsp;订单详情</div>
  <!-- 2016-8-5 -->
  <div class="order-details">
  当前状态：&nbsp;&nbsp;&nbsp;&nbsp;
  <if condition="$info['enable'] eq 0">
    <span class="payment">已取消</span>
  <elseif condition="($info['pay_status'] eq 0) and ($info['enable'] eq 1)" />
    <span class="payment">待付款</span>
  <elseif condition="($info['pay_status'] eq 1) and ($info['enable'] eq 1)" />
    <span class="payment">已完成</span>
  <elseif condition="($info['pay_status'] eq 2) and ($info['enable'] eq 1)" />
    <span class="payment">已完成</span>
  <elseif condition="($info['pay_status'] eq -1) and ($info['enable'] eq 1)" />
    <span class="payment">付款失败</span>
  <else />
    <span class="payment">其他</span>
  </if>
  </div>
  <div class="order_details_list" id="con_one_1"><!-- 其他div需要class添加hide来进行隐藏  实现切换 -->
    <div class="order-title">订单详情</div>
    <div class="order-title-details">
      <ul>
          <li>
          <div>订单号：<b>{$info['order_id']}</b></div>
          <div>下单时间：<b>{$info['order_time'] |date='Y-m-d H:i:s',###}</b></div>
          </li>
          <?php if($info['pay_status']==1){?>
          <li>
          <div>付款方式：
            <if condition="$info['pay_platform'] eq 1">
            <b>支付宝</b>
            <elseif condition="$info['pay_platform'] eq 2"/>
            <b>微信</b>
            </if>
          </div>
          <div>付款时间：<b><?php echo date('Y-m-d H:i:s',$info['pay_time']);?></b></div>
          </li>
          <?php } ?>
          <li><div>邮箱：<b>{$info['email']}</b></div>
          <div>联系方式：<b>{$info['user_mobile']}</b></div>
          </li>
          

      </ul>
    </div>
    <div class="order-title">商品详情</div>
    <table class="table table-order-details table-border">
      <colgroup>
          <col class="col-md-3">
          <col class="col-md-1">
          <col class="col-md-1">
          <col class="col-md-1">
      </colgroup>
      <thead>
          <tr>
            <th>API名称</th>
            <th>套餐价格</th>
            <th>套餐次数</th>
            <th>操作</th>
          </tr>
      </thead>
      <tbody>
          <tr>
            <td class="text-left">{$info['api_name']}</td>
            <if condition="$info['amount'] gt 0">
            <td>{$info['full_package_name']} </td>
            <td>{$info['new_limit_num']}次</td>
            <else />
            <td>免费 </td>
            <td>无限制</td>
            </if>
            <td>
              <!-- <a>取消订单</a> -->
            </td>
          </tr>
      </tbody>
    </table>
    
    
  </div>
  <!-- 2016-8-5 end --> 
</div>
</div>
</else>

</if>

<div id="LoginBox" class="grantdiv">
  <div class="hz">
    <div class="hztop"><a style="float:right; margin-right:20px;" href="javascript:void(0)" title="关闭窗口" class="close_btn" id="close_btn"><img src="./images/no.png" /></a></div>
    <div class="hzcp">
      <p>是否取消订单?</p>
    </div>
    <div class="mydiv-foot" style=" width:250px; margin:0 auto"><a href="javascript:void(0)" class="smthree fl close_btn" id="close_btn">取消</a><a class="smtwo fr">确认</a></div>
  </div>
</div>
<script type="text/javascript">
	$(function ($) {
		//弹出登录
		$("#example").on('click', function () {
			$("#LoginBox").fadeIn("slow");
		});
		//关闭
		$(".close_btn").hover(function () { $(this).css({ color: 'black' }) }, function () { $(this).css({ color: '#999' }) }).on('click', function () {
			$("#LoginBox").fadeOut("fast");
		});
	});
</script>
</body>
</html>
